<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="next" href="Declaration.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class attributes" rel=Appendix href="index_attributes.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Commands" rel="Chapter" href="Commands.html">
<link title="Declaration" rel="Chapter" href="Declaration.html">
<link title="Exceptions" rel="Chapter" href="Exceptions.html">
<link title="Expressions" rel="Chapter" href="Expressions.html">
<link title="Intermediate" rel="Chapter" href="Intermediate.html">
<link title="Lexer" rel="Chapter" href="Lexer.html">
<link title="Main" rel="Chapter" href="Main.html">
<link title="Parser" rel="Chapter" href="Parser.html">
<link title="Print" rel="Chapter" href="Print.html">
<link title="Print_syntaxtree" rel="Chapter" href="Print_syntaxtree.html">
<link title="Semantic" rel="Chapter" href="Semantic.html">
<link title="Subroutines" rel="Chapter" href="Subroutines.html">
<link title="Syntaxtree" rel="Chapter" href="Syntaxtree.html">
<link title="Target" rel="Chapter" href="Target.html"><title>Commands</title>
</head>
<body>
<div class="navbar">&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="Declaration.html">Next</a>
</div>
<center><h1>Module <a href="type_Commands.html">Commands</a></h1></center>
<br>
<pre><span class="keyword">module</span> Commands: <code class="code">sig</code> <a href="Commands.html">..</a> <code class="code">end</code></pre>In this module there is the function to create the Intermediate Code for commands<br>
<hr width="100%">
<br>
In this module there is the function to create the Intermediate Code for commands<br>
<pre><span class="keyword">val</span> <a name="VALgenCommand"></a><a href="code_VALCommands.genCommand.html">genCommand</a> : <code class="type"><a href="Syntaxtree.html#TYPEcmd">Syntaxtree.cmd</a> -><br>       <a href="Intermediate.html#TYPEdec_table">Intermediate.dec_table</a> -><br>       <a href="Intermediate.html#TYPEproc_table">Intermediate.proc_table</a> -> <a href="Intermediate.intermediateCode.html">Intermediate.intermediateCode</a> -> unit</code></pre><div class="info">
Creates the instructions for a command and adds the instructions to the Intermediate Code list of instructions<br>
<b>Returns</b> Nothing, but the intermediate Code class is updated with all the instructions created<br>
</div>
<div class="param_info"><code class="code">c</code> : The command to analyze</div>
<div class="param_info"><code class="code">dect</code> : The declaration table</div>
<div class="param_info"><code class="code">proct</code> : The procedure table</div>
<div class="param_info"><code class="code">ic</code> : The intermediateCode class instance</div>
</body></html>